//
// Created by Administrator on 2020/8/6.
//
#include <iostream>

char *buildStr(char ch, int times) {
    char *str = new char[times + 1];
    for (int i = 0; i < times; ++i) {
        str[i] = ch;
    }
    str[times] = 0;
    return str;
}

int main() {

    char *str = buildStr('V', 30);

    std::cout << str << std::endl;

    delete[]str;

    return 0;
}